package net.xiduth.game.player.dialogues;

import net.xiduth.game.player.content.ItemGambler;

public class GambleConfirm extends Dialogue {
	
	int slotId;
	@Override
	public void start() {
		slotId = (Integer) parameters[0];
		sendOptionsDialogue("You sure you want to gamble this item?", "Yes", "No");
	}
	
	@Override
	public void run(int interfaceId, int option) {
		switch(stage) {
		case -1:
			switch(option) {
			case OPTION_1:
				ItemGambler.gambleItem(player, slotId);
				end();
				break;
			case OPTION_2:
				end();
				break;
			}
			break;
			
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}
	
	
}
